// 生成uuid
export function uuid() {
  function S4() {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
  }
  const str =
    S4() +
    S4() +
    "-" +
    S4() +
    "-" +
    S4() +
    "-" +
    S4() +
    "-" +
    S4() +
    S4() +
    S4();
  return str;
}

export const initData = [
  {
    type: "BOX",
    name: "blue",
    bgColor: "blue",
    h: 50,
    id: "5bc6456e-9378-d7c9-da7d-4cc5e2f40d3b",
    point: {
      id: "bd280302-0ece-e6ab-236e-9cf136a30723",
      x: 0,
      y: 0,
      w: 375,
      h: 25,
    },
  },
  {
    type: "BOX",
    name: "yellow",
    bgColor: "yellow",
    h: 50,
    id: "a2427bcb-a0f0-f572-9640-8af9ae6e254b",
    point: {
      w: 1,
      h: 25,
      x: 0,
      y: 75,
      i: "a2427bcb-a0f0-f572-9640-8af9ae6e254b",
      moved: true,
      static: false,
    },
  },
  {
    type: "BOX",
    name: "red",
    bgColor: "red",
    h: 50,
    id: "0ff65066-6275-1114-8a32-15d5827d63ca",
    point: {
      w: 1,
      h: 25,
      x: 0,
      y: 119,
      i: "0ff65066-6275-1114-8a32-15d5827d63ca",
      moved: true,
      static: false,
    },
  },
  {
    type: "BOX",
    name: "yellow",
    bgColor: "yellow",
    h: 50,
    id: "2108a25f-3987-a542-030d-ce60af5b7036",
    point: {
      id: "744a311a-0681-d00e-c277-0a7d0eb23dd3",
      x: 0,
      y: 0,
      w: 375,
      h: 25,
    },
  },
  {
    type: "BOX",
    name: "red",
    bgColor: "red",
    h: 50,
    id: "573fdfff-b212-e321-eea6-d6251be6bd15",
    point: {
      w: 1,
      h: 25,
      x: 0,
      y: 87,
      i: "573fdfff-b212-e321-eea6-d6251be6bd15",
      moved: true,
      static: false,
    },
  },
];
